package cn.iocoder.yudao.module.myerp.controller.admin.SKUproduct.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - ERP SKU级产品 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProductSkuRespVO {

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15048")
    @ExcelProperty("产品编号")
    private Long id;

    @Schema(description = "SPU", requiredMode = Schema.RequiredMode.REQUIRED, example = "15048")
    @ExcelProperty("SPU")
    private Long spu;

    @Schema(description = "SKC", requiredMode = Schema.RequiredMode.REQUIRED, example = "15048")
    @ExcelProperty("SKC")
    private Long skc;

    @Schema(description = "SKU", requiredMode = Schema.RequiredMode.REQUIRED, example = "15048")
    @ExcelProperty("SKU")
    private Long sku;

    @Schema(description = "店铺ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2352")
    @ExcelProperty("店铺ID")
    private String shopId;

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "女士衬衫")
    @ExcelProperty("商品名称")
    private String name;

    @Schema(description = "商品条码", example = "0001101101")
    @ExcelProperty("商品条码")
    private String barCode;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "尺码", requiredMode = Schema.RequiredMode.REQUIRED, example = "XXL")
    @ExcelProperty("尺码")
    private String standard;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}